/**
 * 
 */
package com.chh.mysso.common.model;

/**
 * @author chh
 *
 */
public class BaseResult<T> {

	/**
	 * 异常信息
	 */
	private String errorMsg;
	
	/**
	 * 是否成功，是否异常
	 */
	private boolean success;
	
	/**
	 * 返回结果数据
	 */
	private T bizData;
	
	public BaseResult(){}
	
	public BaseResult(boolean success, String errorMsg){
		this.errorMsg = errorMsg;
		this.success = success;
	}
	
	public BaseResult(boolean success, T bizData, String errorMsg){
		this.errorMsg = errorMsg;
		this.success = success;
		this.bizData = bizData;
	}

	/**
	 * @return the errorMsg
	 */
	public String getErrorMsg() {
		return errorMsg;
	}

	/**
	 * @param errorMsg the errorMsg to set
	 */
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	/**
	 * @return the success
	 */
	public boolean isSuccess() {
		return success;
	}

	/**
	 * @param success the success to set
	 */
	public void setSuccess(boolean success) {
		this.success = success;
	}

	/**
	 * @return the bizData
	 */
	public T getBizData() {
		return bizData;
	}

	/**
	 * @param bizData the bizData to set
	 */
	public void setBizData(T bizData) {
		this.bizData = bizData;
	}
	
}
